<?php

namespace App\Requests;

use Framework\BaseRequest;

/**
 * @method phone
 * @method password
 * @method code
 * @method confirm_password
 * @method ip
 */
class UserRegisterRequest extends BaseRequest
{
    public function rules()
    {
        return [
            'phone' => 'required',
            'code' => 'required',
            'password' => 'required',
        ];
    }

    public function messages()
    {
        return [
            'phone.required' => '手机号不能为空',
            'code.required' => '验证码不能为空',
            'password.required' => '密码不能为空',
        ];
    }
}
